package classesWrapper;

public class EstWrappers {

    public static void main(String[] args) {
        Double dbwrap = new Double(22.11);
        Double dbwrapStr = new Double("12.22");

        double db = dbwrap;
        double dbstr = dbwrapStr;
        int i = dbwrap.intValue();
        int is = dbwrapStr.intValue();

        System.out.println("double db = " + db);
        System.out.println("double dbstr = " + dbstr);
        System.out.println("i = " + i + " is = " + is);


        int a = 5, b = 2;
        float c;
        System.out.println("a = " + 5);
        System.out.println("b = " + 2);
        c = a / b;
        System.out.println(" c= a/b = " + c);
        c = a / (float) b;
        System.out.println(" c= a/(float)b = " + c);
        c = (float) a / b;
        System.out.println(" c=(float)a/b = " + c);
        c = ((float) a) / b;
        System.out.println(" c=((float)a)/b = " + c);
        
        




    }
}
